package router

import (
	"database/sql"

	"gitee.com/hp-huiw/family-expense-api/internal/handler"
	"github.com/gin-gonic/gin"
)

// Sets routes for appReleaseLog resource.
func SetAppReleaseLogRoutes(routerGroup *gin.RouterGroup, db *sql.DB) {
	h := handler.NewAppReleaseLogHandler(db)

	routerGroup.GET("/query-by-app-version", h.QueryByAppVersion)
	routerGroup.GET("/query-latest-version", h.QueryLatestVersion)
	routerGroup.GET("/list-change-log", h.ListChangeLog)
}
